
<%@ page import="iceportal1.Office" %>

        <g:set var="entityName" value="${message(code: 'office.label', default: 'Office')}" />
    
        <div class="nav">
            <span class="menuButton"><g:remoteLink class="list" action="list" update="office"><g:message code="default.list.label" args="[entityName]" /></g:remoteLink></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${officeInstance}">
            <div class="errors">
                <g:renderErrors bean="${officeInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:formRemote name="officeCreate" url="[action:'save']" update="office" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="office.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: officeInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${officeInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="prefix"><g:message code="office.prefix.label" default="Prefix" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: officeInstance, field: 'prefix', 'errors')}">
                                    <g:textField name="prefix" value="${fieldValue(bean: officeInstance, field: 'prefix')}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
           </g:formRemote>
        </div>
